home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / getdis1r / form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-07-26  |  16.1 KB  |  536 lines

  1. VERSION 5.00
  2. Object = "{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}#1.1#0"; "SHDOCVW.DLL"
  3. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  4. Object = "{F3376356-3242-11D3-83BB-F6844B1D6002}#1.1#0"; "CONTROLRESIZER.OCX"
  5. Begin VB.Form frmBrowser 
  6.    AutoRedraw      =   -1  'True
  7.    BorderStyle     =   1  'Fixed Single
  8.    Caption         =   "<Your Program Name Here>"
  9.    ClientHeight    =   6276
  10.    ClientLeft      =   36
  11.    ClientTop       =   612
  12.    ClientWidth     =   9528
  13.    LinkTopic       =   "Form1"
  14.    Picture         =   "Form1.frx":0000
  15.    ScaleHeight     =   523
  16.    ScaleMode       =   0  'User
  17.    ScaleWidth      =   1.033
  18.    StartUpPosition =   2  'CenterScreen
  19.    Begin VB.ComboBox lstfavs 
  20.       Height          =   288
  21.       Left            =   5640
  22.       TabIndex        =   9
  23.       Top             =   480
  24.       Visible         =   0   'False
  25.       Width           =   3852
  26.    End
  27.    Begin SHDocVwCtl.WebBrowser WebBrowser1 
  28.       Height          =   5412
  29.       Left            =   0
  30.       TabIndex        =   8
  31.       Top             =   840
  32.       Width           =   9492
  33.       ExtentX         =   16743
  34.       ExtentY         =   9546
  35.       ViewMode        =   1
  36.       Offline         =   0
  37.       Silent          =   0
  38.       RegisterAsBrowser=   0
  39.       RegisterAsDropTarget=   0
  40.       AutoArrange     =   -1  'True
  41.       NoClientEdge    =   -1  'True
  42.       AlignLeft       =   0   'False
  43.       ViewID          =   "{0057D0E0-3573-11CF-AE69-08002B2E1262}"
  44.       Location        =   ""
  45.    End
  46.    Begin VB.CommandButton Command5 
  47.       Caption         =   "Home"
  48.       Height          =   420
  49.       Left            =   3960
  50.       TabIndex        =   7
  51.       ToolTipText     =   "Home"
  52.       Top             =   0
  53.       Width           =   904
  54.    End
  55.    Begin VB.CommandButton Command4 
  56.       Caption         =   "Stop"
  57.       Height          =   420
  58.       Left            =   3000
  59.       TabIndex        =   6
  60.       ToolTipText     =   "Stop"
  61.       Top             =   0
  62.       Width           =   904
  63.    End
  64.    Begin VB.CommandButton Command3 
  65.       Caption         =   "Refresh"
  66.       Height          =   420
  67.       Left            =   2040
  68.       TabIndex        =   5
  69.       ToolTipText     =   "Refresh"
  70.       Top             =   0
  71.       Width           =   904
  72.    End
  73.    Begin VB.CommandButton Command2 
  74.       Caption         =   "Forward"
  75.       Height          =   420
  76.       Left            =   1080
  77.       TabIndex        =   4
  78.       ToolTipText     =   "Forward"
  79.       Top             =   0
  80.       Width           =   904
  81.    End
  82.    Begin VB.CommandButton Command1 
  83.       Caption         =   "Back"
  84.       Height          =   420
  85.       Left            =   120
  86.       TabIndex        =   3
  87.       ToolTipText     =   "Back"
  88.       Top             =   0
  89.       Width           =   904
  90.    End
  91.    Begin MSComDlg.CommonDialog CommonDialog1 
  92.       Left            =   4800
  93.       Top             =   3240
  94.       _ExtentX        =   677
  95.       _ExtentY        =   677
  96.       _Version        =   393216
  97.    End
  98.    Begin VB.ComboBox Address 
  99.       Height          =   288
  100.       ItemData        =   "Form1.frx":0052
  101.       Left            =   720
  102.       List            =   "Form1.frx":0054
  103.       TabIndex        =   0
  104.       ToolTipText     =   "Web Site Address"
  105.       Top             =   480
  106.       Width           =   3900
  107.    End
  108.    Begin ControlResizer.AutoResizer AutoResizer1 
  109.       Height          =   3612
  110.       Left            =   2400
  111.       Top             =   1320
  112.       Width           =   4812
  113.       _ExtentX        =   8488
  114.       _ExtentY        =   6371
  115.    End
  116.    Begin VB.Label Label3 
  117.       Caption         =   "Fav.Book:"
  118.       BeginProperty Font 
  119.          Name            =   "MS Sans Serif"
  120.          Size            =   9.6
  121.          Charset         =   0
  122.          Weight          =   400
  123.          Underline       =   0   'False
  124.          Italic          =   0   'False
  125.          Strikethrough   =   0   'False
  126.       EndProperty
  127.       Height          =   252
  128.       Left            =   4680
  129.       TabIndex        =   10
  130.       Top             =   480
  131.       Width           =   972
  132.    End
  133.    Begin VB.Label Label2 
  134.       BorderStyle     =   1  'Fixed Single
  135.       Height          =   420
  136.       Left            =   4920
  137.       TabIndex        =   2
  138.       ToolTipText     =   "Link to what page"
  139.       Top             =   0
  140.       Width           =   4572
  141.    End
  142.    Begin VB.Label Label1 
  143.       Caption         =   "http://"
  144.       BeginProperty Font 
  145.          Name            =   "MS Sans Serif"
  146.          Size            =   9.6
  147.          Charset         =   0
  148.          Weight          =   400
  149.          Underline       =   0   'False
  150.          Italic          =   0   'False
  151.          Strikethrough   =   0   'False
  152.       EndProperty
  153.       Height          =   252
  154.       Left            =   120
  155.       TabIndex        =   1
  156.       Top             =   480
  157.       Width           =   852
  158.    End
  159.    Begin VB.Menu File 
  160.       Caption         =   "&File"
  161.       NegotiatePosition=   1  'Left
  162.       Begin VB.Menu New 
  163.          Caption         =   "&New Window"
  164.          Shortcut        =   ^N
  165.       End
  166.       Begin VB.Menu Extrasenabledisable 
  167.          Caption         =   "&Extra's"
  168.          Begin VB.Menu ExtraEnable 
  169.             Caption         =   "&Enable Extra's"
  170.          End
  171.          Begin VB.Menu ExtraDisable 
  172.             Caption         =   "&Disable Extra's"
  173.          End
  174.       End
  175.       Begin VB.Menu Exit 
  176.          Caption         =   "E&xit"
  177.          Shortcut        =   ^Q
  178.       End
  179.    End
  180.    Begin VB.Menu Extra 
  181.       Caption         =   "&Extra's"
  182.       Enabled         =   0   'False
  183.       NegotiatePosition=   1  'Left
  184.       Begin VB.Menu link 
  185.          Caption         =   "Links"
  186.          Begin VB.Menu Telery 
  187.             Caption         =   "Telery"
  188.          End
  189.          Begin VB.Menu line 
  190.             Caption         =   "-"
  191.          End
  192.          Begin VB.Menu searcheng 
  193.             Caption         =   "Search Engine's"
  194.             Begin VB.Menu vista 
  195.                Caption         =   "Altavista"
  196.             End
  197.             Begin VB.Menu Excite 
  198.                Caption         =   "Excite"
  199.             End
  200.             Begin VB.Menu bot 
  201.                Caption         =   "HotBot"
  202.             End
  203.             Begin VB.Menu Lycos 
  204.                Caption         =   "Lycos"
  205.             End
  206.             Begin VB.Menu Magellan 
  207.                Caption         =   "Magellan"
  208.             End
  209.             Begin VB.Menu search 
  210.                Caption         =   "search.com"
  211.             End
  212.             Begin VB.Menu crawl 
  213.                Caption         =   "WebCrawler"
  214.             End
  215.             Begin VB.Menu gans 
  216.                Caption         =   "Yahooligans"
  217.             End
  218.             Begin VB.Menu Yahoo 
  219.                Caption         =   "Yahoo"
  220.             End
  221.          End
  222.          Begin VB.Menu dwnload 
  223.             Caption         =   "Download"
  224.             Begin VB.Menu media 
  225.                Caption         =   "Macromedia"
  226.             End
  227.             Begin VB.Menu download 
  228.                Caption         =   "download.com"
  229.             End
  230.             Begin VB.Menu shareware 
  231.                Caption         =   "shareware.com"
  232.             End
  233.             Begin VB.Menu window 
  234.                Caption         =   "Windows95.com"
  235.             End
  236.          End
  237.       End
  238.       Begin VB.Menu Mail 
  239.          Caption         =   "Mail"
  240.          Begin VB.Menu SendMail 
  241.             Caption         =   "Send Mail"
  242.             Shortcut        =   ^M
  243.          End
  244.       End
  245.       Begin VB.Menu line2 
  246.          Caption         =   "-"
  247.       End
  248.       Begin VB.Menu FavBook 
  249.          Caption         =   "&Fav. Book"
  250.          Begin VB.Menu favbookadd 
  251.             Caption         =   "&Add FavoriteBook"
  252.             Shortcut        =   ^A
  253.          End
  254.          Begin VB.Menu favbookopen 
  255.             Caption         =   "&Open FavoriteBook"
  256.             Shortcut        =   ^O
  257.          End
  258.       End
  259.       Begin VB.Menu servermisc 
  260.          Caption         =   "&Server Misc."
  261.          Begin VB.Menu IP 
  262.             Caption         =   "IP Finder"
  263.             Shortcut        =   ^I
  264.          End
  265.       End
  266.       Begin VB.Menu soundmisc 
  267.          Caption         =   "Sound Misc."
  268.          Begin VB.Menu midiplayer 
  269.             Caption         =   "Local Midi Player"
  270.             Shortcut        =   ^L
  271.          End
  272.       End
  273.    End
  274.    Begin VB.Menu About 
  275.       Caption         =   "&About"
  276.       NegotiatePosition=   1  'Left
  277.       Begin VB.Menu About1 
  278.          Caption         =   "About <Your Program Name Here>"
  279.       End
  280.       Begin VB.Menu Credits 
  281.          Caption         =   "&Credits"
  282.       End
  283.       Begin VB.Menu mnuline1 
  284.          Caption         =   "-"
  285.       End
  286.       Begin VB.Menu register 
  287.          Caption         =   "Register"
  288.          Shortcut        =   ^R
  289.       End
  290.    End
  291.    Begin VB.Menu mnuFile 
  292.       Caption         =   "Popup Menu"
  293.       Visible         =   0   'False
  294.       Begin VB.Menu mnusub1 
  295.          Caption         =   "Enable Extra's"
  296.          Shortcut        =   ^E
  297.       End
  298.       Begin VB.Menu mnusub2 
  299.          Caption         =   "Disable Extra's"
  300.          Shortcut        =   ^D
  301.       End
  302.       Begin VB.Menu mnusub3 
  303.          Caption         =   "Exit"
  304.          Shortcut        =   ^X
  305.       End
  306.    End
  307. Attribute VB_Name = "frmBrowser"
  308. Attribute VB_GlobalNameSpace = False
  309. Attribute VB_Creatable = False
  310. Attribute VB_PredeclaredId = True
  311. Attribute VB_Exposed = False
  312. Dim a As New frmBrowser
  313. Private Sub Author_Click()
  314. WebBrowser1.Navigate ("http://www.telery.com/kf4zpb/")
  315. End Sub
  316. Private Sub bot_Click()
  317. WebBrowser1.Navigate ("http://www.hotbot.com/")
  318. End Sub
  319. Private Sub Command6_Click()
  320. Unload Me
  321. End Sub
  322. Private Sub crawl_Click()
  323. WebBrowser1.Navigate ("http://www.webcrawler.com./")
  324. End Sub
  325. Private Sub Credits_Click()
  326.     Msg = "Name: <Your Name Here> ; E-Mail:<Your E-Mail Here> ; Web Page: <Your Web Page Address Here>"
  327.     MsgTitle = "Author of <Your Program Name Here>"
  328.     prompt = MsgBox(Msg, vbOKOnly, MsgTitle)
  329.     Msg = "This program is protected by copyright laws.  Warrenty Info: The author is not responsible for any damage done to your computer.  It is distributed AS IS."
  330.     MsgTitle = "Warning: Please read the following message."
  331.     prompt = MsgBox(Msg, vbOKOnly, MsgTitle)
  332. End Sub
  333. Private Sub download_Click()
  334. WebBrowser1.Navigate ("http://www.download.com/")
  335. End Sub
  336. Private Sub Excite_Click()
  337. WebBrowser1.Navigate ("http://www.excite.com/")
  338. End Sub
  339. Private Sub Extraenable_Click()
  340. Extra.Enabled = True
  341. End Sub
  342. Private Sub Extradisable_Click()
  343. Extra.Enabled = False
  344. End Sub
  345. Private Sub Exit_Click()
  346. Unload Me
  347. End Sub
  348. Private Sub favbookadd_Click()
  349.     FN = FreeFile
  350.        Open "favbook.txt" For Append As FN
  351.        Print #FN, Address.Text & Chr(13)
  352.        Close #FN
  353.    End Sub
  354. Private Sub favbookopen_Click()
  355.        On Error Resume Next
  356.        FN = FreeFile
  357.        Open "favbook.txt" For Input As FN
  358.        lstfavs.Visible = True
  359.        Do Until EOF(FN)
  360.            Line Input #FN, NextLine$
  361.            lstfavs.AddItem NextLine$
  362.        Loop
  363.        Close #FN
  364.    End Sub
  365. Private Sub Form_Load()
  366.        url = "c:\blank.htm"
  367.        WebBrowser1.Navigate url
  368. End Sub
  369.    Private Sub Address_Click()
  370. WebBrowser1.Navigate (Address.Text)
  371.     Address.AddItem Item, Index
  372.     On Error Resume Next
  373.    End Sub
  374. Private Sub Address_KeyPress(KeyAscii As Integer)
  375. If KeyAscii = 13 Then
  376. Address_Click
  377. End If
  378. End Sub
  379. Private Sub Address_LostFocus()
  380. Address.AddItem (Address.Text)
  381. End Sub
  382. Private Sub gans_Click()
  383. WebBrowser1.Navigate ("http://www.yahooligans.com/")
  384. End Sub
  385. Private Sub Home_Click()
  386. WebBrowser1.Home ("http://www.telery.com")
  387. On Error GoTo HomeErr
  388. HomeErr:
  389. End Sub
  390. Private Sub Command1_Click()
  391. On Error GoTo BackErr
  392. WebBrowser1.GoBack
  393. BackErr:
  394.        Exit Sub
  395. End Sub
  396. Private Sub Command2_Click()
  397. On Error GoTo ForwardErr
  398. WebBrowser1.GoForward
  399.        
  400. ForwardErr:
  401.        Exit Sub
  402. End Sub
  403. Private Sub Command3_Click()
  404. On Error GoTo RefreshErr
  405. WebBrowser1.Refresh
  406. RefreshErr:
  407.        Exit Sub
  408. End Sub
  409. Private Sub Command4_Click()
  410. On Error GoTo StopErr
  411. WebBrowser1.Stop
  412. StopErr:
  413.        Exit Sub
  414. End Sub
  415. Private Sub Command5_Click()
  416. WebBrowser1.Navigate ("http://www.telery.com/")
  417.        Exit Sub
  418. End Sub
  419. Private Sub IP_Click()
  420. frmIP.Show 1
  421. End Sub
  422. Private Sub lstfavs_Click()
  423.        Address.Text = lstfavs.List(lstfavs.ListIndex)
  424.        Address.Text = lstfavs
  425.        Close #FN
  426.        lstfavs.Visible = False
  427. End Sub
  428. Private Sub Lycos_Click()
  429. WebBrowser1.Navigate ("http://www.lycos.com/")
  430. End Sub
  431. Private Sub Magellan_Click()
  432. WebBrowser1.Navigate ("http://www.mckinley.com/")
  433. End Sub
  434. Private Sub media_Click()
  435. WebBrowser1.Navigate ("http://www.macromedia.com/")
  436. End Sub
  437. Private Sub midiplayer_Click()
  438. frmMidi.Show 1
  439. End Sub
  440. Private Sub mnusub1_Click()
  441. Extra.Enabled = True
  442. End Sub
  443. Private Sub mnusub2_Click()
  444. Extra.Enabled = False
  445. End Sub
  446. Private Sub mnusub3_Click()
  447. Unload Me
  448. End Sub
  449. Private Sub New_Click()
  450. a.Show
  451. End Sub
  452. Private Sub About1_Click()
  453. frmAbout.Show
  454. End Sub
  455. Private Sub Refresh_Click()
  456. WebBrowser1.Refresh
  457. End Sub
  458. Private Sub Picture1_Click()
  459. WebBrowser1.Navigate ("http://www.telery.com/kf4zpb/")
  460. End Sub
  461. Private Sub register_Click()
  462. frmReg.Show
  463. End Sub
  464. Private Sub search_Click()
  465. WebBrowser1.Navigate ("http://www.search.com/")
  466. End Sub
  467. Private Sub SendMail_Click()
  468. frmMain.Show
  469. End Sub
  470. Private Sub shareware_Click()
  471. WebBrowser1.Navigate ("http://www.shareware.com/")
  472. End Sub
  473. Private Sub Stop_Click()
  474. WebBrowser1.Stop
  475. End Sub
  476. Private Sub Telery_Click()
  477. WebBrowser1.Navigate ("http://www.telery.com/")
  478. End Sub
  479. Private Sub vista_Click()
  480. WebBrowser1.Navigate ("http://www.altavista.com/")
  481. End Sub
  482. Private Sub WebBrowser1_StatusTextChange(ByVal Text As String)
  483.     Label2 = Text
  484. End Sub
  485. Private Sub window_Click()
  486. WebBrowser1.Navigate ("http://www.windows95.com/")
  487. End Sub
  488. Private Sub Yahoo_Click()
  489. WebBrowser1.Navigate ("http://www.yahoo.com/")
  490. End Sub
  491. Private Sub WebBrowser1_TitleChange(ByVal Text As String)
  492.        Me.Caption = Text
  493.    End Sub
  494.       Private Sub Cancel_Click()
  495. Unload Me
  496. End Sub
  497. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  498. If Button = 2 Then PopupMenu mnuFile
  499. End Sub
  500. Private Sub frmBrowser_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  501. If Button = 2 Then PopupMenu mnuFile
  502. End Sub
  503. Private Sub WebBrowser1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  504. If Button = 2 Then PopupMenu mnuFile
  505. End Sub
  506. Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  507. If Button = 2 Then PopupMenu mnuFile
  508. End Sub
  509. Private Sub Label2_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  510. If Button = 2 Then PopupMenu mnuFile
  511. End Sub
  512. Private Sub StatusBar1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  513. If Button = 2 Then PopupMenu mnuFile
  514. End Sub
  515. Private Sub Address_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  516. If Button = 2 Then PopupMenu mnuFile
  517. End Sub
  518. Private Sub Command1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  519. If Button = 2 Then PopupMenu mnuFile
  520. End Sub
  521. Private Sub Command2_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  522. If Button = 2 Then PopupMenu mnuFile
  523. End Sub
  524. Private Sub Command3_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  525. If Button = 2 Then PopupMenu mnuFile
  526. End Sub
  527. Private Sub Command4_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  528. If Button = 2 Then PopupMenu mnuFile
  529. End Sub
  530. Private Sub Command5_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  531. If Button = 2 Then PopupMenu mnuFile
  532. End Sub
  533. Private Sub Command6_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
  534. If Button = 2 Then PopupMenu mnuFile
  535. End Sub
  536.